!function() {
	
	// 获得基础JIPIN对象
	var JIPIN = window.__NS__JIPIN;
	if(!JIPIN) { return; }
	var $ = JIPIN.$;
	
	if(inValidPage()) {
		JIPIN.getSitePicDesc = function(targetPic) {
			var desc = targetPic.attr('title'),
				parentList = targetPic.closest('.feed_list');
			if(parentList.length && parentList.attr('isforward') == 1) {
				desc = targetPic.closest('dl').children('dt').children('em').text();
			} else if(parentList.length) {
				desc = targetPic.closest('.content').children('p[node-type="feed_list_content"]').children('em').text();
			}
			return desc || '';
		}
	}
	
	JIPIN.getSourceURL = function(targetPic) {
		var url = document.location.href,
			parentList = targetPic.closest('.feed_list'),
			timeNode;
			
		if(parentList.length && parentList.attr('isforward') == 1) {
			timeNode = targetPic.closest('dl').find('a.date');
		} else if(parentList.length) {
			timeNode = targetPic.closest('.content').find('a.date');
		}
		if(timeNode && timeNode.length) {
			url = timeNode.get(0).href;
		}
		return url;
	}
	
	function inValidPage() {
		return true;
	}
	
}();
